package com.cwd.yg.controller;

import com.cwd.yg.pojo.Schedule;
import com.cwd.yg.pojo.TimeTable;
import com.cwd.yg.service.ScheduleService;
import com.cwd.yg.service.TimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description：ScheduleController
 * @Author ：Cwd
 * @Date ：2022/2/7 14:57
 */
@RestController
@RequestMapping("/schedule")
public class ScheduleController {

    @Autowired
    private ScheduleService scheduleService;

    @GetMapping(value = "/list")
    public List<Schedule> list(){
        System.out.println("Ok");
        return scheduleService.queryAll();
    }
}
